/* Page Background */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

body {
    background-color: #1c1c1c;
    color: #fff;
    margin: 0;
    padding: 0;
    /* قبلاً 200px بود */
    font-family: 'Vazirmatn', sans-serif;
}

/* Filter Buttons Section */
.filter-group {
    text-align: center;
    margin: 40px auto 20px;
    font-family: 'Vazirmatn', sans-serif;

}

.filter-group button {
    margin: 5px;
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #555;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.8rem;
    font-family: 'Vazirmatn', sans-serif;

}

.filter-group button.active {
    background: #444;
    color: #fff;
}

/* Container: full viewport width */
.slider-container {
    width: 100vw;
    margin: 0 auto;
    margin-top: 150px;
    position: relative;
    overflow: hidden;
}

/* Slides wrapper with 5px gap */
.slides {
    display: flex;
    gap: 5px;
    transition: transform 0.5s ease-in-out;
}

/* Each Slide: 6 per view */
.slide {
    flex: 0 0 calc((100% - 25px) / 6);
    box-sizing: border-box;
}

/* Inner wrapper for blur & overlay */
.slide-inner {
    position: relative;
    overflow: hidden;
}

.slide-inner img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease-in-out;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.slide-inner:hover img {
    filter: blur(4px);
}

.slide-inner:hover .overlay {
    opacity: 1;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    z-index: 1;
    font-size: 1.5rem;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Hide slides by category */
.slide.hidden {
    display: none;
}

.scroll-hidden {
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE و Edge */
}

.scroll-hidden::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* هدر */
header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 60px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    direction: rtl;

}

/* ناوبری */
nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* منوی همبرگری */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    background: #e0e0e0;
    margin: 4px 0;
    width: 25px;
    border-radius: 3px;
}

/* آیتم منو */
.menu-item {
    position: relative;
}

.menu-item>a {
    color: #e0e0e0;
    padding: 10px;
    text-decoration: none;
}

.menu-item.home>a {
    color: #d4af37;
    font-weight: bold;
}

/* زیرمنو */
.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(18, 18, 18, 0.95);
    min-width: 160px;
    padding: 10px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.submenu a {
    color: #e0e0e0;
    padding: 8px 16px;
    display: block;
    text-decoration: none;
}

.menu-item:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* واکنش‌گرایی برای موبایل */
@media screen and (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 10px;
        gap: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.95);
        transition: max-height 0.4s ease;
    }

    nav.open {
        max-height: 700px;
    }

    .menu-item {
        width: 100%;
    }

    .menu-item>a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .submenu {
        display: none;
        position: static;
        background-color: #1c1c1c;
        padding-left: 20px;
    }

    .menu-item.open-submenu .submenu {
        display: block;
    }
}

header::before {
    content: "";
    position: absolute;
    right: 20px;
    top: 10px;
    width: 40px;
    height: 40px;
    background-image: url('/public-ass/logo-3.png');
    /* مسیر لوگوی خودت */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5%;
    /* لوگو دایره‌ای */
    z-index: 15;
}

@media screen and (max-width: 768px) {
    header::before {
        display: none;
    }
}

.filter-group {
    text-align: center;
    margin: 100PX auto 0PX;
    /* مقدار بالا از 40 به 80 تغییر داده شد */
    font-family: 'Vazirmatn', sans-serif;
}

/* ===== موبایل: فقط اسلایدر ===== */
@media (max-width: 600px) {

    /* نشان دادن دو تا اسلاید همزمان (یا یک تا اگر می‌خواهی) */
    .slide {
        bottom: 200px;
        flex: 0 0 50%;
        /* دو تا در هر صفحه */
        max-width: 50%;
    }

    /* فاصله کمی بزرگ‌تر تا لمس راحت‌تر شود */
    .slides {
        gap: 8px;
    }

    /* کوچک‌تر و پایین‌تر کردن دکمه‌ها برای دسترسی انگشت */
    .nav-btn {
        bottom: 12px;
        top: auto;
        transform: translateY(0);
        padding: 10px;
        font-size: 1rem;
        opacity: 0.95;
    }

    .prev {
        left: 12px;
    }

    .next {
        right: 12px;
    }

    /* کمی padding برای viewport تا انگشتان از لبه فاصله داشته باشند */
    .viewport {
        padding: 0 10px;
    }

    /* متن overlay متناسب‌تر */
    .overlay {
        font-size: 1rem;
        padding: 0 6px;
    }

    /* اگر می‌خواهی نمایش تنها یک اسلاید به‌صورت تمام عرض:
     به جای 50% از 100% استفاده کن و max-width:100% */
    /* .slide { flex:0 0 100%; max-width:100%; } */
}